/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package recurtiontest;

/**
 *
 * @author ha
 */
public class RecurtionTest {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        RecurtionTest re=new RecurtionTest();
        re.recur(7, 1);
    }
    public void recur(int a,int b){
        if(a-b>=1){
            recur(a-1,b);
            System.out.println("result "+(a-b));
        }
    }
}
